package com.example.demo1104.demo2;

import java.util.function.BiPredicate;


public class Test04 {
     public static void main(String[] args) {
        BiPredicate<String,String> predicate=(t1,t2)->t1.equals(t2);
         BiPredicate<String,String> predicate01=String::equals;
        boolean test = predicate.test(" haha", "hhhh");
         boolean test02 = predicate01.test("hehe", "hehe");
        System.out.println(test);
         System.out.println(test02);
    }
}
